package ru.ksu.ktk.diploma.sdi;

import java.io.IOException;
import java.io.InputStream;

import com.hp.hpl.jena.ontology.OntModel;

import ru.ksu.ktk.diploma.sdi.dao.ResourcesDao;
import ru.ksu.ktk.diploma.sdi.mapping.MappingGenerator;
import ru.ksu.ktk.diploma.sdi.schema.SchemaGenerator;

public class SchemaIntegrator {
	private SchemaGenerator schemaGenerator;
	private MappingGenerator mappingGenerator;
	private ResourcesDao resourcesDao;

	public void generateMapping(InputStream sourceStream) throws IOException {
		OntModel sourceData = schemaGenerator.generateSchema(sourceStream);
		mappingGenerator.getCorrespondences(sourceData);
	}

	public SchemaGenerator getSchemaGenerator() {
		return schemaGenerator;
	}

	public void setSchemaGenerator(SchemaGenerator schemaGenerator) {
		this.schemaGenerator = schemaGenerator;
	}

	public MappingGenerator getMappingGenerator() {
		return mappingGenerator;
	}

	public void setMappingGenerator(MappingGenerator mappingGenerator) {
		this.mappingGenerator = mappingGenerator;
	}

    public ResourcesDao getResourcesDao() {
        return resourcesDao;
    }

    public void setResourcesDao(ResourcesDao resourcesDao) {
        this.resourcesDao = resourcesDao;
    }

}
